package com.engine.modules.ytht.service;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;
import java.util.Map;

/**
 * @author FY
 * @version 1.0.0
 * @ClassName LocationService.java
 * @Description TODO
 * @createTime 2021年12月12日
 */
public interface LocationService {
    public JSONObject getLocationPolygon(String pac);


    @Cacheable(key = "'LocationPolygon:'+#pac")
    List<Map<String, Object>> getLocationPolygon2(String pac);

    @Cacheable(key = "'LocationPolygon:YC'+#ycpac")
    List<Map<String, Object>> getLocationPolygonByYCPac(String ycpac);

    public List<Map<String, Object>> getLocationPacByLngLat(float lng, float lat);

}
